/**
 * Created by pengxiang on 2017/7/14.
 * 功能：使用connect模块，建立的静态服务器，解决了静态资源访问问题
 */
const path = require('path');
var connect = require("connect");
var serveStatic = require("serve-static");
var open = require("open");


 var app = connect();
 // app.use(serveStatic("C:\\xxx\\xxx\\xxx\\项目文件夹"));
 var _path = path.resolve(__dirname, '../');
 console.log(_path);
 app.use(serveStatic(_path));
//  app.use(serveStatic("public"));

 app.listen(33322);
 console.log('Server running at http://127.0.0.1:33322/');

//open("http://127.0.0.1:1336/");
// open("http://www.google.com", "firefox");
//open("http://127.0.0.1:33322/0/Course/story.html");